<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>外卖网365</title>
<link href="style/css.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script> 
<script src="js/jquery.blockUI.js" type="text/javascript"></script>
<script type="text/javascript"> 
$(function(){ 
//Default Action 
  $(".tab_content").hide(); //Hide all content 
  $("ul.tabs li:first").addClass("active").show(); //Activate first tab 
  $(".tab_content:first").show(); //Show first tab content 
  //On Click Event 
  $("ul.tabs li").click(function() { 
    $("ul.tabs li").removeClass("active"); //Remove any "active" class 
    $(this).addClass("active"); //Add "active" class to selected tab 
    $(".tab_content").hide(); //Hide all tab content 
    var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content 
    $(activeTab).fadeIn(); //Fade in the active content 
    return false; 
  }); 
}); 
</script> 
<script type="text/javascript"> 
$(function(){
  $('#login').click(function(){   //给box_btn绑定一个鼠标点击的事件
  $.blockUI({    //当点击事件发生时调用弹出层
    message: $('#loginbox'),    //要弹出的元素box
    css: {    //弹出元素的CSS属性
      border:'5px solid #334343',
      textAlign: 'left',
  	width: '490px',
  	top:  ($(window).height() - 290) /2 + 'px', 
      left: ($(window).width() - 490) /2 + 'px', 
  	cursor: 'auto'
         },
    overlayCSS: {
  	opacity: '0.7' 
  	          }
   });
  $('.blockOverlay').attr('title','单击关闭').click($.unblockUI);   //遮罩层属性的设置以及当鼠标单击遮罩层可以关闭弹出层
  $('.close').click($.unblockUI);  //也可以自定义一个关闭按钮来关闭弹出层

  });

});
function InputCheck(LoginForm)
{
  if (LoginForm.username.value == "")
  {
    alert("请输入用户名!");
    LoginForm.username.focus();
    return (false);
  }
  if (LoginForm.password.value == "")
  {
    alert("请输入密码!");
    LoginForm.password.focus();
    return (false);
  }
}

</script> 
</head>

<body>

<div id="loginbox" style="display:none">
<form name="LoginForm" method="post" action="login.php" onSubmit="return InputCheck(this)">
  <div class="login_title">会员登录</div>
  <div class="login_input">
    <div class="input"><span>账号：</span><span><input name="username" type="text" /></span></div>
    <div class="input"><span>密码：</span><span><input name="password" type="password" /></span></div>
    <div class="login_input_1 clearfix"><input name="" type="checkbox" value="" id="store1" /><label for="store1">自动登录</label><a href="#">找回密码</a></div>
    <div class="reg clearfix"><span><input class="login_btn" name="submit" type="image" src="images/login.jpg" /></span><span>还没有账号？</span><a href="#">立即注册</a></div>
  </div>
</form>
</div>

<div class="top">
  <div class="top_content clearfix"><span class="left">欢迎来到外卖网365！</span><span class="right">
  <a href="#" id="login">
  <?php
    if(isset($_SESSION['username'])){
      echo $_SESSION['username'],'欢迎你！';
    }else{
      echo '登录';
    }
  ?>登录
 </a> / <a href="#">注册</a> | <a href="#">店铺登陆</a></span></div>
</div>

<div class="content clearfix">
  <div class="content_logo"><img src="images/logo.png"></div>
  <div class="content_con clearfix">
    <div class="content_con_left left">
      <div class="guide">
        <div class="guide_title">常用地址</div>
        <ul class="clearfix add">
          <li><span class="left">SOHO现代城A座301室</span><span class="right">></span></li>
          <li><span class="left">苏州街创业大厦102室</span><span class="right">></span></li>
          <li><span class="left">三元桥A座301室</span><span class="right">></span></li>
          <li><span class="left">三里屯创业大厦102室...</span><span class="right">></span></li>
          <li><span class="left">三里屯创业大厦102室...</span><span class="right">></span></li>
        </ul>
      </div>
      <div class="guide">
        <div class="guide_title">常用地址</div>
        <ul class="clearfix commonshop">
          <li><div><img src="images/1.gif"></div><div>爱上米粉</div></li>
          <li><div><img src="images/1.gif"></div><div>爱上米粉</div></li>
          <li><div><img src="images/1.gif"></div><div>京客隆现代城店</div></li>
          <li><div><img src="images/1.gif"></div><div>爱上米粉</div></li>
          <li><div><img src="images/1.gif"></div><div>爱上米粉</div></li>
          <li><div><img src="images/1.gif"></div><div>爱上米粉</div></li>
          <li><div><img src="images/1.gif"></div><div>爱上米粉</div></li>
          <li><div><img src="images/1.gif"></div><div>爱上米粉</div></li>
          <li><div><img src="images/1.gif"></div><div>爱上米粉</div></li>
        </ul>
      </div>
    </div>
    <div class="content_con_right right">
      <ul class="tabs"> 
        <li><a href="#tab1">朝阳</a></li> 
        <li><a href="#tab2">海淀</a></li> 
        <li><a href="#tab3">东城</a></li> 
        <li><a href="#tab4">西城</a></li> 
      </ul>
      <div class="tab_container clearfix"> 
        <ul id="tab1" class="tab_content clearfix">
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
        </ul> 
        <ul id="tab2" class="tab_content clearfix">
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
        </ul> 
        <ul id="tab3" class="tab_content clearfix">
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
        </ul> 
        <ul id="tab4" class="tab_content clearfix">
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
          <li><a href="#">光华路光明小区</a></li>
        </ul> 
      </div>
    </div>
  </div>
</div>

<div class="bottom">
  <div class="bottom_content clearfix">
    <div class="bottom_left left"><img src="images/logo_s.gif"></div>
    <div class="bottom_right left">
      <div><a href="#">关于我们</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="#">诚招英才</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="#">合作商谈</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="#">网站地图</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="#">免责条款</a></div>
      <div>Copyright © 2013 waimaiwang365.com All rights reserved  京ICP备030173号</div>
    </div>
  </div>
</div>
</body>
</html>
